module TagEventsHelper
	
  	def TagEvent.createTagEventFromTagUserResource(tagId,userId,resourceId)
		tag_event = TagEvent.new
		tag_event.user_id = userId
		tag_event.tag_id = tagId
		tag_event.resource_id = resourceId
		tag_event.save
		return tag_event
	end	 
end
